
/** 被观察者的具体对象
 * @author LiuShanshan
 * @version V1.0
 * @Description
 */
public class WeixinUserImpl implements Iobserverdemo2{
    private String name;

    WeixinUserImpl(String name){
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
